REM 
REM Usage: call "$(SolutionDir)Solution Items\FishServe.Build.Module.bat" "$(ConfigurationName)" "$(SolutionName)" "$(SolutionDir)." "$(ProjectName)" "$(ProjectDir)." "$(ProjectFileName)." "$(TargetName)" "$(TargetFileName)"  "$(TargetDir)."
REM

REM
REM References:
REM http://msdn.microsoft.com/en-us/library/42x5kfw4.aspx
REM http://www.sharepointblogs.com/michael/archive/2007/07/06/sharepoint-solution-deployment-handy-post-build-events.aspx
REM


SET ConfigurationName=%1
SET SolutionName=%2
SET SolutionDir=%3
SET ProjectName=%4
SET ProjectDir=%5
SET ProjectFileName=%6
SET TargetName=%7
SET TargetFileName=%8
SET TargetDir=%9

SET QuotelessSolutionDir=%SolutionDir:~1,-3%

ECHO FishServe.Build.Module.bat: PostBuildAction for project %ProjectName%

call "%QuotelessSolutionDir%\Solution Items\FishServe.Build.Module.exe" %ConfigurationName% %SolutionName% %SolutionDir% %ProjectName% %ProjectDir% %ProjectFileName% %TargetName% %TargetFileName% %TargetDir%
if errorlevel 1 goto BuildEventFailed
goto BuildEventOk

:BuildEventFailed
ECHO FishServe.Build.Module.bat: PostBuildAction for project %ProjectName% Failed
exit 1

:BuildEventOk
ECHO FishServe.Build.Module.bat: PostBuildAction for project %ProjectName% Completed Ok

